package entity;

/**
 * @ClassName MyThread2
 * @Description: TODO
 * @Author yjwu
 * @Date 2020/4/15 20:51
 **/
public class MyThread2 implements Runnable {
    private String name;
    private int num = 5;
    private static int numm = 10;

    public MyThread2(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            num--;
            numm--;
            System.out.println("线程" + name + "=" + i + ", num=" + num + ", " + numm);
        }
    }
}
